//
//================================
//1.	
//2.
//
//Write by Artur Ataev (STEP-ODESA-11.06-01.07.2014)
//mail: art.post.ua@gmail.com
//
//d1 cb c0 c2 c0 20 d3 ca d0 c0 af cd b2 20 21

#include <iostream>
#include <ctime>
#include <cstdlib>
#include <stdio.h>
#include <string.h>
#include <windows.h>
#include <conio.h>

using namespace std;

#include "order.h"
#include "order.cpp"


main(void)
{
/*	int * tmp;
	cout << sizeof tmp << endl;
	tmp = new int[1];
	cout << sizeof tmp << endl;
	_getch();
	
*/	
/*	
	cout << endl << "Object A" << endl;
	order A(10,3);
	A.Show(2);
	A = 5;
	A.Show(2);
	cout << "+++++++++++++++++++++++";
	cout << endl << "Object B" << endl;
	order B(10,3);
	B.Show(2);
	B = 1;
	B[-2] = 3;
	B[50] = 7;
	B.Show(2);
	cout << "+++++++++++++++++++++++";

	B = A;
	B.Show(2);
	cout << "+++++++++++++++++++++++";

	
	
	for (size_t i= 0; i< 7; ++i)
	{
		int k = i+1;
		A[i] = k;
		B[i] = k*2;
		//A.Show(2);
		//_getch();
	}
	A.Show(2);
	B.Show(2);
order C = B;
	C.Show(2);
	B = 12;
	C.Show(2);
	B.Show(2);
*/

	order A1(10,3);
	A1 = 5;
	A1.Show(3);
	
	order A2 = A1;
	A2.Show(4);
	A2 = 7;
	A2.Show(4);
	
	order AB(15,4);
	AB = 12;
	

	//order A3;
	
	order A3 = (A2+AB);//.Show(5);
	A3.Show(5);
	
	A3+1;
		A3.Show(5);
	A3-2;
		A3.Show(5);

	
_getch();
}





